package com.sc.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;

/**
 * @Author: Sunk 673116067@qq.com
 * @Date: 2018/5/15 10:45
 * @Description:
 */
@Service
public class ImgUtils {
    @Autowired
    private Environment env;

    public String setImgUrl(String string){
        String uri=env.getProperty("yt.image");
        string=uri+"/" +string;
        return string;
    }

}